<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

			<fmt:setBundle basename="messages" />
		<title><fmt:message key="title"/></title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
	<body>
<table border=1 width="80%" align="center" height="100%">			<tr>
				<td colspan=2>
				<jsp:include page="header.jsp"></jsp:include>
				</td>
			</tr>
			<tr>
				<td width="20%">
					<jsp:include page="adminfunc.jsp"></jsp:include>
				</td>
				<td valign="top">
					<form action="UpdateProduct.do" method="post">
						<center>
							<table cellpadding=4 cellspacing=2 border=0>
								<tr>
									<th width="50%">
										<fmt:message key="label.EditPro.Type"/>
									</th>
									<th width="55%">
										<fmt:message key="label.EditPro.Detail"/>
									</th>
								</tr>

								<tr>
									<td>
										<fmt:message key="label.EditPro.ProductNumber"/>
									</td>
									<td>
										<input type="text" size="15" name="productnum"
											value="${requestScope.product.productnum}" readonly>
									</td>
								<tr>
									<td>
										<fmt:message key="label.EditPro.ProductName"/>
									</td>
									<td>
										<input type="text" name="productname"
											value="${requestScope.product.productname}" size=15
											maxlength=20>
									</td>
								</tr>
								<tr>
									<td>
											<fmt:message key="label.EditPro.UnitPrice"/>
									</td>
									<td>
										<input type="text" name="unitprice"
											value="${requestScope.product.unitprice}" size=15
											maxlength=20>
									</td>
								</tr>
								<tr>
									<td>
											<fmt:message key="label.EditPro.Description"/>
									</td>
									<td>
										<input type="text" name="description"
											value="${requestScope.product.description}" size=15
											maxlength=20>
									</td>
								</tr>
								<tr>
									<td>
											<fmt:message key="label.EditPro.Color"/>
									</td>
									<td>
										<input type="text" name="color"
											value="${requestScope.product.color}" size=15 maxlength=20>
									</td>
								</tr>
								<tr>
									<td>
										<fmt:message key="label.EditPro.Dimension"/>
									</td>
									<td>
										<input type="text" name="dimension"
											value="${requestScope.product.dimension}" size=15
											maxlength=20>
									</td>
								</tr>
								<tr>
									<td>
										<fmt:message key="label.EditPro.Manufacturer"/>
									</td>
									<td>
										<input type="text" name="manufacturer"
											value="${requestScope.product.manufacturer}" size=15
											maxlength=20>
									</td>
								</tr>
								<tr>
									<td>
										<fmt:message key="label.EditPro.ReorderLevel"/>
									</td>
									<td>
										<input type="text" name="reorderlevel"
											value="${requestScope.product.reorderlevel}" size=15
											maxlength=20>
									</td>
								</tr>
								<tr>
									<td>
										<fmt:message key="label.EditPro.MinOrder"/>
									</td>
									<td>
										<input type="text" name="minorder"
											value="${requestScope.product.minorder}" size=15 maxlength=20>
									</td>
								</tr>
								<tr>
									<td>
										<fmt:message key="label.EditPro.ShelfLocation"/>
									</td>
									<td>
										<input type="text" name="shelflocation"
											value="${requestScope.product.shelflocation}" size=15
											maxlength=20>
									</td>
								</tr>
								<tr>
									<td>
										<fmt:message key="label.EditPro.InStock"/>
									</td>
									<td>
										<input type="text" name="instock"
											value="${requestScope.product.instock}" size=15 maxlength=20 >
									</td>
								</tr>
							</table>
						</center>
						<center>
							<br>
							<br>
							<input type="submit" value="Edit">
							<input type="reset" value="Clear">
						</center>
					</form>
				</td>
			</tr>
		</table>
	</body>
</html>
